{%- macro input_text_group(input_id='Input_text',input_value='',label_txt='Text',input_placeholder='...',col_sm='col-sm-12') -%}
<div class="{{ col_sm }}">
        <!-- text input -->
    <div class="form-group">
        <label>{{ label_txt }}</label>
        <input type="text" class="inval form-control {{ input_id }}" value="{{ input_value }}" id="{{ input_id }}" name="{{ input_id }}" placeholder="{{ input_placeholder }}">
    </div>
</div>
{% endmacro %}


{%- macro upload_image_group_bak(input_id='upload_image',col_sm='col-sm-12') -%}
<div class="col-sm-12">
    <div class="form-group col-sm-2 upload-button">
        <button type="button" class="btn btn-block btn-info btn-sm " >上传标题图</button>
    </div>
    <div class="form-group upload-show" style="display:none">
        <a href="" style="">1formformformform.jpg</a>
        <a href="" class="btn btn-danger btn-xs upload-" style="color:#FFF;margin-left: 20px"><i class="fas fa-trash"></i>删除配图</a>
    </div>
</div>
{% endmacro %}



{%- macro upload_image_group(input_id='upload_image',col_sm='col-sm-12',ImageFile="") -%}
<div class="col-sm-12">
    <div id="upfilediv" class="form-group col-sm-2 upload-button"></div>
    <input type="hidden" name="theImagefile" id="theImagefile" value="{{ ImageFile }}" />
</div>
{% endmacro %}


{%- macro textarea_group(textarea_id='textarea_id',textarea_value='',label_txt='文章内容',textarea_placeholder='...') -%}
<label>{{ label_txt }}</label>
<textarea id="{{ textarea_id }}" name="{{ textarea_id }}" class="textarea inval form-control {{ textarea_id }}" placeholder="{{ textarea_placeholder }}"></textarea>
{% endmacro %}